
import React,{Component} from 'react';
import {View,Text} from 'react-native';

import {Collapse} from 'iftide';

export default class Basic extends Component {
    constructor(props) {
        super(props);
    }
    folderClickFunc(index){
        console.log(index)
    }
    handleFunc(){
        console.log(123)
    }
    render(){
        const SECTIONS1 = [
            {
                title: '主要信息',
                content: '内容区域',
                status:'已审核',
                statusColor:'green'
            },
            {
                title: '主要信息',
                content: '内容区域',
                status:'状态信息'
            },
            {
                title: '主要信息',
                content: '内容区域',
                subTitle:'次要信息',
                status:'未通过',
                statusColor:'red'
            }
        ];
        let folderContainer1={
            hasImg:true,
            imgPos:'right',
            initiallyActiveSection:0,
            section:SECTIONS1,
            clickFunc:this.folderClickFunc,
            marginTop:5,
            isHasPadding:false,
            isHasMargin:false,
            hasSpace:true,
            contentColor:'#fff',
            isShowContentLine:false
        }

        return (
            <View >
                <Text>收起按钮默认居右样式</Text>
                <Collapse {...folderContainer1}></Collapse>
            </View>
        );

    }
}